
import { getRequest, postRequest } from '/src/lib/axios';

export const fileApi = {
  /**
   * @description: 获取所有角色
   */
  queryAll: () => {
    return getRequest('/role/getAll');
  },
  /**
   * @description:添加角色
   */
  upload: (data) => {
    return postRequest('/file/upload', data);
  },
}
